<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core">

    <f:view>

        <f:event type="preRenderView" listener="#{usuario.verificarLogin}" />

        <h:head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <h:outputStylesheet name="fonts.css" />
            <h:outputStylesheet name="styles.css" />
            <title>Hermes Web</title>
        </h:head>

        <h:body>

                <ui:insert name="top">
                    <div id="top-sistema">
                        <h:outputText id="lblTitulo" styleClass="titulo-sistema" value="Hermes Web" />
                        <div id="menu">
                            <h:form>
                                <h:panelGrid columns="3" cellspacing="15px">
                                    <h:commandLink id="linkHome" value="início" action="inicio" />
                                    <h:commandLink id="linkTabulacao" value="pesquisar tabulação" action="pesqTabulacao" />
                                    <h:commandLink id="linkSair" value="sair" action="#{usuario.efetuarLogoff}" />
                                </h:panelGrid>
                            </h:form>
                        </div>
                    </div>
                </ui:insert>

                <ui:insert name="content"></ui:insert>

        </h:body>

    </f:view>
    
</html>
